package com.csun.dsms.model.education;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 学习教育突出问题整治工作台账
 */
@Data
@Table(name = "jy_problem_management")
public class JyProblemManagement implements Serializable {

    private static final long serialVersionUID = -71112614331123L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "prominent_problem")
    private String prominentProblem;

    @Column(name = "problem_type")
    private String problemType;

    //新增bigType字段

    // 新增remark字段
    

    @Column(name = "specific_performance")
    private String specificPerformance;

    @Column(name = "rectification_measures")
    private String rectificationMeasures;

    private String department;

    @Column(name = "responsible_leader")
    private String responsibleLeader;

    @Column(name = "completion_deadline")
    private String completionDeadline;

    @Column(name = "problems_found_count")
    private Integer problemsFoundCount;

    @Column(name = "closed_count")
    private Integer closedCount;

    @Column(name = "in_progress_count")
    private Integer inProgressCount;

    @Column(name = "disciplinary_cases")
    private Integer disciplinaryCases;

    @Column(name = "punished_persons")
    private Integer punishedPersons;
    // 纪律处理处分人数
    @Column(name = "disciplinary_punished_persons")
    private Integer disciplinaryPunishedPersons;

    @Column(name = "recommendation_letters")
    private Integer recommendationLetters;

    @Column(name = "circular_issues")
    private Integer circularIssues;

    @Column(name = "circular_no")
    private String circularNo;

    @Column(name = "established_systems")
    private Integer establishedSystems;

    @Column(name = "established_name")
    private String establishedName;

    @Column(name = "supervising_leader")
    private String supervisingLeader;

    @Column(name = "remark")
    private String remark;

    @Column(name = "big_type_name")
    private String bigTypeName;

    @Column(name = "is_top_ten")
    private Integer isTopTen;

    @Column(name = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @Column(name = "update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Column(name = "report_user")
    private String reportUser;

    @Column(name = "report_user_phone")
    private String reportUserPhone;

    @Column(name = "area_name")
    private String areaName;
}
